]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
telepathyClient: Fix JS warning triggered by undeclared variable
authorAdel Gadllah <adel.gadllah@gmail.com>
Wed, 30 Mar 2011 09:44:53 +0000 (11:44 +0200)
committerAdel Gadllah <adel.gadllah@gmail.com>
Fri, 8 Apr 2011 18:32:56 +0000 (20:32 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=646205

js/ui/telepathyClient.js

index 0b33e86027c28f9240b6fd26ee86b6bb6df3da18..0a3f6b724cf82005143d62d4ccd47732dadc6ec1 100644 (file)
@@ -473,6 +473,8 @@ Notification.prototype = {
 
         var daysAgo = (now.getTime() - date.getTime()) / (24 * 60 * 60 * 1000);
 
+        let format;
+
         // Show a week day and time if date is in the last week
         if (daysAgo < 1 || (daysAgo < 7 && now.getDay() != date.getDay())) {
             /* Translators: this is a time format string followed by a date.